package com.api.shopapi.service;


import com.api.shopapi.entity.OrderGoods;
import com.api.shopapi.entity.dto.OrderGoodsDTO;
import com.api.shopapi.entity.dto.OrderGoodsDTO1;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderGoodsService {

    int insert(OrderGoods orderGoods);

    int delete(String orderGoodsCode);

    int update(OrderGoods orderGoods);

    List<OrderGoods> getList();

    OrderGoods getByOrderGoodsCode(String orderGoodsCode);

    List<OrderGoodsDTO> getListByOrderBusinessCode(String orderBusinessCode);

    OrderGoods getByOrderBusinessCode(String orderBusinessCode);

    List<OrderGoods> getByOrderBusinessCodeForPage(String orderBusinessCode,String businessCode);

    PageInfo<OrderGoodsDTO1> businessConsumerOrderInfo(int pageIndex,int pageSize,String startTime,String endTime,
                                                       int orderType,String businessCode);

    PageInfo<OrderGoodsDTO1> userConsumerOrderInfo(int pageIndex,int pageSize,String userCode,String startTime,String endTime,
                                                       int orderType,String businessCode);

    List<OrderGoodsDTO1> exportBusinessConsumerOrderInfo(String startTime,String endTime,
                                                       int orderType,String businessCode);

}
